package Graph;

public class Square extends Graphics{
    private double s;

    public double getS() {
        return s;
    }

    public void setS(double s) {
        this.s = s;
    }
    public String toString(){
        return "正方形颜色为"+getColor()+"面积为"+s*s;
    }
}
